<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title></title>
    <meta name="viewport" content=" initial-scale=1.0,user-scalable=no" />
    <meta name="apple-mobile-web-app-capable" content="yes" />
    <meta name="apple-mobile-web-app-status-bar-style" content="black" />
    <meta content="black" name="apple-mobile-web-app-status-bar-style" />
    <link href="css/all.css" rel="stylesheet" />
    <script src="js/android.js"></script>
    <script src="js/jquery-1.8.0.min.js"></script>
    <script src="js/common.js"></script>
    <script src="js/db/base/dbSqlite.js"></script>
    <script src="js/db/base/dbCache.js"></script>
    <script src="js/db/base/dbIndexedDB.js"></script>
    <script src="js/db/base/dbLocalStorage.js"></script>
    <script src="js/db/dbBase.js"></script>
    <script src="js/db/dbCore.js"></script>
    <script src="js/db/dbModel.js"></script>
    <script src="js/db/dbSync.js"></script>
    <script src="js/db/tools.js"></script>
    <script src="js/jsonp.js"></script>
    <script src="js/DateFormat.js"></script>
    <script src="js/CryptoJSv3.1.2/aes.js"></script>
    <script src="js/CryptoJSv3.1.2/mode-ecb-min.js"></script>
    <script src="js/CryptoJSv3.1.2/main.js"></script>
    <script src="js/patternLock/patternLock.js"></script>
    <script src="js/db/db.js"></script>
    <script src="js/db/DbAc.js"></script>
    <script src="js/db/DbConn.js"></script>
    <script src="js/db/DbGroup.js"></script>
    <script src="js/db/DbPwd.js"></script>
    <script src="js/ui/ui.js"></script>
    <script src="mk/login.js"></script>
    <script src="mk/initmainkey.js"></script>
    <script src="mk/main.js"></script>
    <script src="mk/mainSync.js"></script>
    <script src="mk/ac.js"></script>
    <script src="mk/acAdd.js"></script>
    <script src="mk/randomPwd.js"></script>
    <script src="mk/acEdit.js"></script>
    <script src="mk/acShow.js"></script>
    <script src="mk/pwdEdit.js"></script>
    <script src="mk/pwdHis.js"></script>
    <script src="mk/serverSet.js"></script>
    <script src="mk/connLst.js"></script>
    <script src="mk/connEdit.js"></script>
    <script src="js/jsBridge.js"></script>
    <script src="js/interface.js"></script>
    <script src="js/mk.js"></script>
    <script src="js/htmlcache.js"></script>
    <script src="js/sysState.js"></script>
    <script>
        function GetQueryString(name) {
            var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)");
            var r = window.location.search.substr(1).match(reg);
            if (r != null)
                return unescape(r[2]);
            return null;
        }
        function mainInit() {
            var mainKey = SysState.mainKey.get();
            if (!mainKey) {
                loadPage('initmainkey', {
                    onSeted: mainInit
                });
                return;
            }
            if (!SysState.loginKey) {
                loadPage('login', {
                    'onDraw': function (key) {
                        var mk = SysState.mainKey.get(key);
                        if (!mk) {
                            mAlert('解锁密码错误', mainInit);
                            thePatternLockObj.reset();
                            SysState.ljcw.check();
                        } else {
                            SysState.ljcw.reset();
                            SysState.loginKey = key;
                            mainInit();
                        }
                    }
                });
                return;
            }
            loadPage('main');
        }
        $(function () {
            initJsBridge();
            SysState.IKey = GetQueryString('IKey');
            SysState.NotShowPwd = GetQueryString('NotShowPwd');
            SysState.IsSupportFingerprint = GetQueryString('IsSupportFingerprint');
            if (!SysState.IKey && typeof (_theIkey) != 'undefined') {
                SysState.IKey = _theIkey;
                SysState.NotShowPwd = _NotShowPwd;
                SysState.IsSupportFingerprint = _IsSupportFingerprint;
            }
            mainInit();
        });
    </script>
</head>
<body>
</body>
</html>
